package net.wanho.util;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import net.wanho.vo.AjaxResult;

/**
 * Author：汤小洋
 * Date：2024-09-12 13:36
 * Description：<描述>
 */
public class BlockExceptionUtil {

    public static AjaxResult blockHandler(BlockException e) {
        return AjaxResult.error("Sentinel限流，请稍后再试：" + e.getMessage());
    }
}
